﻿using System.Windows.Controls;
using System.Windows.Media;

namespace FAQ_UI
{
	public abstract class IconGridHolder : ViewHolder
	{
		public static string savedObject;
		public TextBlock Name;
		public MyDrawableView Icon;

		static IconGridHolder()
		{
			savedObject = save(parse("/uitemplate/IconGridHolder.xaml"));
		}

		public IconGridHolder()
		{
			setView(Clone(savedObject));
			Name = get<TextBlock>("Name");
			Icon = get<MyDrawableView>("Icon");
			Icon.Stretch = Stretch.Uniform;
		}
	}
}